package
{
	import com.greensock.easing.Back;
	import com.greensock.easing.Bounce;
	import com.greensock.easing.Circ;
	import com.greensock.easing.Cubic;
	import com.greensock.easing.Elastic;
	import com.greensock.easing.Expo;
	import com.greensock.easing.FastEase;
	import com.greensock.easing.Linear;
	import com.greensock.easing.Quad;
	import com.greensock.easing.Quart;
	import com.greensock.easing.Quint;
	import com.greensock.easing.Sine;
	import com.greensock.easing.Strong;
	
	import flash.text.TextField;
	
	import flupie.textanim.TextAnim;
	import flupie.textanim.TextAnimMode;
	import flupie.textanim.TextAnimSplit;
	
	import mx.controls.ComboBox;
	import mx.core.Application;
	
	public class EffectEditorClass extends Application
	{
		public var startEffectsArr:Array = [
			{label:"从左至右", from:{x:0}, to:{x:300}},
			{label:"从右至左", from:{x:300}, to:{x:0}}
		];
		
		public var endEffectArr:Array = [
			{label:"从左至右", from:{x:0}, to:{x:300}},
			{label:"从右至左", from:{x:300}, to:{x:0}}
		];
		
		[Bindable]public var startEffectDuration:Number = 1;
		[Bindable]public var endEffectDuration:Number = 1;
		[Bindable]public var text:String = "test";
		
		public var easeArr:Array = [
			{label:"Back.easeIn", ease:Back.easeIn},
			{label:"Back.easeInOut", ease:Back.easeInOut},
			{label:"Back.easeInOut", ease:Back.easeOut},
			{label:"Bounce.easeIn", ease:Bounce.easeIn},
			{label:"Bounce.easeInOut", ease:Bounce.easeInOut},
			{label:"Bounce.easeInOut", ease:Bounce.easeOut},
			{label:"Circ.easeIn", ease:Circ.easeIn},
			{label:"Circ.easeInOut", ease:Circ.easeInOut},
			{label:"Circ.easeInOut", ease:Circ.easeOut},
			{label:"Cubic.easeIn", ease:Cubic.easeIn},
			{label:"Cubic.easeInOut", ease:Cubic.easeInOut},
			{label:"Cubic.easeInOut", ease:Cubic.easeOut},
			{label:"Elastic.easeIn", ease:Elastic.easeIn},
			{label:"Elastic.easeInOut", ease:Elastic.easeInOut},
			{label:"Elastic.easeInOut", ease:Elastic.easeOut},
			{label:"Expo.easeIn", ease:Expo.easeIn},
			{label:"Expo.easeInOut", ease:Expo.easeInOut},
			{label:"Expo.easeInOut", ease:Expo.easeOut},
			{label:"Linear.easeIn", ease:Linear.easeIn},
			{label:"Linear.easeInOut", ease:Linear.easeInOut},
			{label:"Linear.easeInOut", ease:Linear.easeOut},
			{label:"Quad.easeIn", ease:Quad.easeIn},
			{label:"Quad.easeInOut", ease:Quad.easeInOut},
			{label:"Quad.easeInOut", ease:Quad.easeOut},
			{label:"Quart.easeIn", ease:Quart.easeIn},
			{label:"Quart.easeInOut", ease:Quart.easeInOut},
			{label:"Quart.easeInOut", ease:Quart.easeOut},
			{label:"Quint.easeIn", ease:Quint.easeIn},
			{label:"Quint.easeInOut", ease:Quint.easeInOut},
			{label:"Quint.easeInOut", ease:Quint.easeOut},
			{label:"Sine.easeIn", ease:Sine.easeIn},
			{label:"Sine.easeInOut", ease:Sine.easeInOut},
			{label:"Sine.easeInOut", ease:Sine.easeOut},
			{label:"Strong.easeIn", ease:Strong.easeIn},
			{label:"Strong.easeInOut", ease:Strong.easeInOut},
			{label:"Strong.easeInOut", ease:Strong.easeOut},
		];
		
		
		public var easeCmbox:ComboBox;
		public var startEffectCmbox:ComboBox;
		public var endEffectCmbox:ComboBox;
		
		public var tf:TextField;
		public var textAnim:TextAnim;
		
		[Bindable]public var split:String;
		[Bindable]public var mode:String;
		[Bindable]public var anchorX:Number;
		[Bindable]public var anchorY:Number;
		
		
		
		public function EffectEditorClass()
		{
			super();
			mode = TextAnimMode.FIRST_LAST;
			split = TextAnimSplit.CHARS;
			
		}
	}
}